package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberItemCartypeCopyMapper;
import com.whq.entity.MemberItemCartypeCopy;
import com.whq.service.MemberItemCartypeCopyService;

@Service(value = "tdMemberItemCartypeCopyService")
public class MemberItemCartypeCopyServiceImpl implements MemberItemCartypeCopyService {

    @Autowired
    private MemberItemCartypeCopyMapper<MemberItemCartypeCopy>tdMemberItemCartypeCopyMapper;
    
    @Override
    public Integer insertSelective(MemberItemCartypeCopy tdMemberItemCartypeCopy) throws Exception {
           return this.tdMemberItemCartypeCopyMapper.insertSelective(tdMemberItemCartypeCopy);
        }

    @Override
    public Integer insertBatch(List<MemberItemCartypeCopy> tdMemberItemCartypeCopy) throws Exception {
           return this.tdMemberItemCartypeCopyMapper.insertBatch(tdMemberItemCartypeCopy) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemberItemCartypeCopyMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemberItemCartypeCopyMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemberItemCartypeCopy tdMemberItemCartypeCopy) {
           return this.tdMemberItemCartypeCopyMapper.updateByPrimaryKeySelective(tdMemberItemCartypeCopy);
    }

    @Override
    public MemberItemCartypeCopy findById(Object id) {
           return (MemberItemCartypeCopy) this.tdMemberItemCartypeCopyMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemberItemCartypeCopy> selectByCondition(MemberItemCartypeCopy tdMemberItemCartypeCopy) {
           return (List<MemberItemCartypeCopy>) this.tdMemberItemCartypeCopyMapper.selectByCondition(tdMemberItemCartypeCopy);
    }

    @Override
    public Integer selectCountByCondition(MemberItemCartypeCopy tdMemberItemCartypeCopy) {
           return  this.tdMemberItemCartypeCopyMapper.selectCountByCondition(tdMemberItemCartypeCopy);
    }

}
